<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
include('db.php');

return array(
	'basePath' => dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '..',
	'name' => 'My Console Application',

	// preloading 'log' component
	'preload' => array( 'log' ),
	'import' => array(
		'application.models.*',
		'application.components.*',
	),
	// application components
	'components' => array(
		'curl' => array(
			'class' => 'ext.Curl',
			'params' => array('proxy' => array('enable' => false, 'ip' => '212.115.233.64', 'port' => '8080', 'auth' => false, 'userName' => '', 'password'), 'cookie' => "yandex_gid=213;yandexmarket=1000,RUR,1,,,,2,0,0", 'tries_count'=>1),
			'proxy'=>	[
							//['ip' => '119.46.111.15', 'port' => '8080'],
                			['ip' => '212.154.154.216', 'port' => '8080'],						
                		],
//			'options' => [],
		),

		// uncomment the following to use a MySQL database
		/*
		'dbDest' => array(
			'class' => 'system.db.CDbConnection',
			'connectionString' => $dbDest['driver'].':host=' . $dbDest[ 'host' ] . ';dbname=' . $dbDest[ 'db' ],
			'emulatePrepare' => true,
			'username' => $dbDest[ 'user' ],
			'password' => $dbDest[ 'password' ],
			'tablePrefix' => 'mb_',
			'charset' => 'utf8',
			'enableProfiling' => true,
			'enableParamLogging' => true,
		),
		*/
		'db' => array(
			'class' => 'system.db.CDbConnection',
			'connectionString' => $db['driver'].':host=' . $db[ 'host' ] . ';dbname=' . $db[ 'db' ],
			'emulatePrepare' => true,
			'username' => $db[ 'user' ],
			'password' => $db[ 'password' ],
			'tablePrefix' => 'mb_',
			'charset' => 'utf8',
			'enableProfiling' => true,
			'enableParamLogging' => true,
		),
		'dbLocal' => array(
			'class' => 'system.db.CDbConnection',
			'connectionString' => $dbLocal['driver'].':host=' . $dbLocal[ 'host' ] . ';dbname=' . $dbLocal[ 'db' ],
			'emulatePrepare' => true,
			'username' => $dbLocal[ 'user' ],
			'password' => $dbLocal[ 'password' ],
			'tablePrefix' => 'mb_',
			'charset' => 'utf8',
			'enableProfiling' => true,
			'enableParamLogging' => true,
		),
		'dbClaris' => array(
            'class'=>'application.extensions.PHPPDO.CPdoDbConnection',
            'pdoClass' => 'PHPPDO',
            'connectionString' => 'mssql:host=136.243.46.231;dbname=ClarisMS',
            'username' => 'sa',
            'password' => 'clarisMSSQL!@#',
            'charset' => 'utf8',
        ),
		'log' => array(
			'class' => 'CLogRouter',
			'routes' => array(
				array(
					'class' => 'CFileLogRoute',
					'levels' => 'error, warning',
				),
			),
		),
	),
);
